package com.linjacy.container.product.dao;

import com.linjacy.container.product.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linjacy.container.product.vo.OrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author linjacy
 * @email 939886352@gmail.com
 * @date 2021-01-03 16:04:54
 */
@Mapper
@Repository
public interface OrderDao extends BaseMapper<OrderEntity> {
	List<OrderVo> selectOrderVo(@Param("past1") Integer past1,@Param("past2") Integer past2,@Param("current") Long current,@Param("pageSize") Long pageSize,@Param("query") String query);
	int selectCountByUid(@Param("uid") Long uid);
	void updateOrderStatus(@Param("cid") Long cid,@Param("endTime") Date endTime);
	void changeOrderStatus(@Param("orderId") Long orderId);
	Long getUidByCid(@Param("cid") Long cid);
	int getOrderCount(@Param("date") String date);
	List<String> getDateTime(@Param("start") String start,@Param("end") String end);
	List<Map<String,Integer>> getCity();
	List<Map<String,String>> getNowOrder();
	List<Map<String,Integer>> getBiscuit();
}
